The foundation of the city is attributed to the Romans, who occupied the region in the 2nd century BC and named the city Scalabis. During the Roman period, Scalabis was an important commercial post in the mid-Tagus region, and was the administrative capital of one of the regions (Conventus Escalabitanus) of Lusitania.